package gui;


import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.pushingpixels.substance.api.skin.SkinInfo;


public class SkinManager {

	private Map<String, SkinInfo> skins;
	
	
	public SkinManager() {
		super();
		this.skins = org.pushingpixels.substance.api.SubstanceLookAndFeel.getAllSkins();
	}
	
	public List<String> nombresSkins()
	{
		List<String> nombres = new ArrayList<String>();
		
		Set<String> keys = skins.keySet();
		for (Iterator<String> iterator = keys.iterator(); iterator.hasNext();) {
			String string = (String) iterator.next();
			nombres.add(string);
		}
		return nombres;
	}
	
	public String getSkin(String nombreSkin){
		return skins.get(nombreSkin).getClassName();
	}
}
